<?php

namespace app\admin\controller\health\goods;

use app\common\controller\Backend;
use app\health\model\HealthGoodsCategory;

class Category extends Backend
{
    /**
     * HealthGoodsCategory
     * @var $model HealthGoodsCategory
     */
    protected $model = null;

    public function _initialize()
    {
        parent::_initialize();
        $this->model = new HealthGoodsCategory();
        $this->view->assign("statusList", $this->model->getIsEnableList());
    }

    /**
     * 选择分类
     * @Author 张旭鹏
     * @DateTime 2023-06-21
     */
    public function select()
    {
        $list = $this->model->order('sort desc, id asc')->select();
        $this->success('选择分类', null, $list);
    }
}
